package com.andy.eqm.server.game.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.andy.eqm.server.game.GiftUtil;

@Component
public class GameScheduler {
	
	private final Logger logger = LoggerFactory.getLogger(this.getClass()); 
	
	@Scheduled(cron="0 */1 * * * ?") 
	public void refreshGift() {
		if(logger.isInfoEnabled()){
			logger.info("生成礼物...");
		}
		GiftUtil.createGift();
		
	}
}

